Skip to content

Use ResizeObserver for responsive charts - #8017

Open
Lexachoc wants to merge 3 commits into
plotly:mainfrom
Lexachoc:resize-enhancement
Open

Use ResizeObserver for responsive charts#8017
Lexachoc wants to merge 3 commits into
plotly:mainfrom
Lexachoc:resize-enhancement

Conversation

@Lexachoc

@Lexachoc Lexachoc commented Sep 3, 2026

Copy link
Copy Markdown
Contributor

Original discussion: plotly/react-plotly.js#380
Related PR: plotly/react-plotly.js#379

This is a follow-up to #2974.

Based on plotly/react-plotly.js#380 (comment), I'm opening this PR in plotly.js as well so config.responsive can use ResizeObserver directly.

@Lexachoc

Lexachoc commented Sep 3, 2026

Copy link
Copy Markdown
Contributor Author

I also want to confirm this description; it seems this option still exists in v4:

responsive: {
valType: 'boolean',
dflt: false,
description: [
'Determines whether to change the layout size when window is resized.',
'In v3, this option will be removed and will always be true.'
].join(' ')
},

@Lexachoc

Lexachoc commented Sep 3, 2026

Copy link
Copy Markdown
Contributor Author

There is one failed check:

@flaky should only transition the layout when both traces and layout have animatable changes by default

I'm not sure whether this is related to my changes. If it is, how should I address it, or can it be ignored?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant